package com.proposition.commons.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;
/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2017-11-10 9:52
 **/
@TableName("sys_user_log")
public class SysUserLog extends Model<SysUserLog>{

	/**日志id*/
	@TableId
	private String logId;
	/**用户id*/
	private String username;
	/**模块名称*/
	private String moduleName;
	/**操作*/
	private String operate;
	/**时间*/
	private Date time;
	/**类名*/
	private String className;
	/**方法名*/
	private String methodName;
	/**传入参数*/
	private String params;
	/**操作ip*/
	private String ip;

	public String getLogId() {
		return logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public String getOperate() {
		return operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Override
	public String toString() {
		return "SysUserLog{" +
				"logId='" + logId + '\'' +
				", username='" + username + '\'' +
				", moduleName='" + moduleName + '\'' +
				", operate='" + operate + '\'' +
				", time=" + time +
				", className='" + className + '\'' +
				", methodName='" + methodName + '\'' +
				", params='" + params + '\'' +
				", ip='" + ip + '\'' +
				'}';
	}

	@Override
	protected Serializable pkVal() {
		return this.logId;
	}
}
